<?php

    final class FetchType
    {
        const FM_ARRAY_NUMERIC = 2;
        const FM_ARRAY_ASSOCIATIVE = 4;
        const FM_ARRAY_BOTH = 6;

        const FM_OBJECT = 1;
        const FM_ASSOCIATIVE = 0;

    }

    if(interface_exists('IRecordSet') === false)
    {
        interface IRecordSet
        {
            public function fetchObject(); 
            public function fetchRow(); 
            public function fetchAssoc();
            public function fetchArray();

        }
    }

    Class RecordSet
    {

        protected $_result = null;

        protected $_db = null;

        protected $returnNum = 0;

        public function returnNum()
        {
            return $this->ReturnNum;
        }

        public function __construct( &$db , $result)
        {
            $this->_result = $result;
            $this->_db = $db;      
        }
    }
?>